]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Hide preview overlays from picks
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 14 Mar 2017 23:36:26 +0000 (00:36 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 20 Mar 2017 18:02:07 +0000 (19:02 +0100)
Dragging and dropping app icons is expected to work anywhere over a
workspace, however overlaid elements are added to a separate hierarchy
and can thus block valid drop targets. This wasn't much of an issue
while we had just the window title, but since the addition of the
focus border, drops on window previews stopped working entirely.

Fix this by hiding all non-reactive overlay elements from picks.

https://bugzilla.gnome.org/show_bug.cgi?id=737166

js/ui/workspace.js

index a1d1582aec8fa64474415ca0964f4c7196367d50..11a65d6763df9308d663f516c9562772cb35864f 100644 (file)
@@ -471,6 +471,10 @@ const WindowOverlay = new Lang.Class({
         this.title = title;
         this.closeButton = button;
 
+        // Don't block drop targets
+        Shell.util_set_hidden_from_pick(this.title, true);
+        Shell.util_set_hidden_from_pick(this.border, true);
+
         parentActor.add_actor(this.title);
         parentActor.add_actor(this.border);
         parentActor.add_actor(this.closeButton);